/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.MsgRelease;
import com.sasis.dao.MsgReleaseDao;
import com.sasis.service.MsgReleaseManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class MsgReleaseManagerImpl extends BaseManager implements MsgReleaseManager {
    private MsgReleaseDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setMsgReleaseDao(MsgReleaseDao dao) {
        this.dao = dao;
    }
    public String getMsgReleaseUser(Integer id){
    	return dao.getMsgReleaseUser(id);
    }
    public List getPopMsgReleases(final MsgRelease msgRelease) {
    	return dao.getPopMsgReleases(msgRelease);
    }
    /**
     * @see com.sasis.service.MsgReleaseManager#getMsgReleases(com.sasis.model.MsgRelease)
     */
    public List getMsgReleases(final MsgRelease msgRelease) {
        return dao.getMsgReleases(msgRelease);
    }

    /**
     * @see com.sasis.service.MsgReleaseManager#getMsgRelease(String id)
     */
    public MsgRelease getMsgRelease(final String id) {
        return dao.getMsgRelease(new Integer(id));
    }

    /**
     * @see com.sasis.service.MsgReleaseManager#saveMsgRelease(MsgRelease msgRelease)
     */
    public int saveMsgRelease(MsgRelease msgRelease) {
       return dao.saveMsgRelease(msgRelease);
    }

    /**
     * @see com.sasis.service.MsgReleaseManager#removeMsgRelease(String id)
     */
    public void removeMsgRelease(MsgRelease msgRelease) {
        dao.removeMsgRelease( msgRelease);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
